Categorization of chest xrays images